const cloud = require('wx-server-sdk');
cloud.init({
  env:cloud.DYNAMIC_CURRENT_ENV
});
const db = cloud.database();
exports.main = async (event, context) =>{
  const res = await db.collection('standPhoto').add({
    data:{
      fileName:event.fileName,
      filePath:event.filePath
    }
  });
  // return res
  return {
    msg:"上传成功",
    res
  }
}